package uk.ac.shef.ecomm;

import java.sql.Time;

public abstract class User 
{
	protected String email;
	protected String name;
	protected String pass;
	protected Time LastAccess;
	protected String type;
	
	/*
	 * Setters
	 */
	public void setEmail(String e)
	{
		this.email = e;
	}
	public void setPass(String p)
	{
		this.pass = p;
	}
	public void setLastAccess(Time LA )
	{
		this.LastAccess = LA;
	}
	public void setName(String n)
	{
		this.name = n;
	}
	public void setType(String t)
	{
		this.type = t;
	}
	/*
	 * Getters
	 */
	public String getEmail()
	{
		return this.email;
	}
	public String getPass()
	{
		return this.pass;
	}
	public Time getLastAcess()
	{
		return this.LastAccess;
	}
	public String getName()
	{
		return this.name;
	}
	
	public String getType()
	{
		return this.type;
	}
	/*
	 * 
	 */
	public void PrintUser()
	{
		System.out.println(this.toString());
	}
}
